package com.lucky.ebidding.enums;

/**
 * ClassName:NotificationTypeEnum
 * Package:com.lucky.ebidding.enums
 * Description:
 *
 * @Date:2020/5/3 9:45
 * @Author:857251389@qq.com
 */
public enum NotificationTypeEnum {
    /**
     * 审核通知
     */
    CHECK(0, "审核"),
    /**
     * 评标通知
     */
    EVALUATION_OF_BID(1, "评标"),
    /**
     * 中标通知
     */
    SUCCESS_ZB(2,"中标"),
    /**
     * 身份审核通知
     */
    IDENTITY_CHECK(3,"身份审核"),

    /**
     * 未中标通知
     */
    FAILED_ZB(4,"未中标"),
    /**
     * 招标项目修改通知
     */
    ZBINFO_UPDATE(5,"修改"),
    /**
     * 招标项目修改审核
     */
    ZBINFO_UPDATE_CHECK(6,"项目修改审核")
    ;

    private Integer type;

    private String name;

    NotificationTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static String nameOfType(Integer type) {
        for (NotificationTypeEnum notificationTypeEnum : NotificationTypeEnum.values()) {
            if (notificationTypeEnum.getType().equals(type)) {
                return notificationTypeEnum.getName();
            }
        }

        return "";
    }
}
